TESetJust
short justType ; justification mode
This selects the justification mode for the specified TextEdit record.
justType is a short specifying a justification mode (see below).
hTE is a handle obtained via TENew (old style TextEdit record) or TEStylNew (new style TextEdit record). It leads to a variable-length TERec structure and identifies the edit record to be affected by this change.
Notes: Justification is performed relative to the left and right side of the
destination rectangle as defined when the edit record was created (TENew) and by the current value of the TERec. destRect field of the edit record structure.
By default, text is justified to the left. The structure member
(*hTE)->just always contains the current justification setting.
Use the following constants to specify the justication mode.
New constant Old constant Description
teFlushRight teJustRight Flush right for all scripts
teFlushLeft teForceLeft Flush left for all scripts
teCenter teJustCenter Centered for all scripts
teFlushDefault teJustLeft Flush according to line direction
After using this function, use InvalRect to force the record to be redrawn with the new justification (on the next update event).